class Solution:

    def coloredCells(self, n: int) -> int:
        ans = 0
        for i in range(n):
            ans += i << 2
        return ans + 1